import {defineStore} from "pinia";
import {ref} from "vue";

export const useUserStore = defineStore('userInfo',()=>{
    const username = ref('')

    const setUsername = (newInfo)=>{
        username.value = newInfo
    }
    const removeUsername = ()=>{
        username.value = ''
    }

    return {
        username,
        setUsername,
        removeUsername
    }
},{
    persist: true
})